<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>选课结果</title>
<link rel="stylesheet" th:href="@{/styles.css}" />

</head>
<body>
	<h1 align="center">选课结果</h1>
	<div style="position:relative;left:1250px;padding:5px">
	  	<button><a th:href="@{/}">返回主页面</a></button>
	</div>	
	<div align="center" th:if="${nowUser} ne null">
      	<h2><p th:text="当前用户：+${nowUser.username}"></h2>
	</div>
	
	<div th:each="personinfo:${personInfos}">
		<table align="center">
			<tr>
				<td>学号：</td>
				<td><span th:text="${personinfo.stuNo}">Course</span><br></td>
			</tr>
			<tr>
				<td>学生姓名：</td>
				<td><span th:text="${personinfo.stuName}">Course</span><br></td>
			</tr>
			<tr>
				<td>班级：</td>
				<td><span th:text="${personinfo.stuClass}">Course</span><br></td>
			</tr>
			<tr>
				<td>学院：</td>
				<td><span th:text="${personinfo.stuCollege}">Course</span><br></td>
			</tr>
			<tr>
				<td>已选课程：</td>
				<td th:each="election:${personinfo.elections}">
					<span th:each="course:${election.courses}">
						<span th:text="${course.name}">无</span><br>
					</span>
				</td>
			</tr>
			<tr><td colspan="2">---------------------------------------</td></tr>
		</table>
	</div>
	

</body>
</html>